package com.health.service;

import com.health.entity.PageResult;
import com.health.entity.QueryPageBean;
import com.health.entity.Result;
import com.health.pojo.Report;

import java.util.Map;

/**
 * @Classname ReportService
 * @Description TODO
 * @Version 1.0.0
 * @Date 2023/3/17 16:13
 * @Author RainGrd
 */
public interface ReportService {
    /**
     * 获得运营统计数据
     * Map数据格式：
     *      todayNewMember -> number
     *      totalMember -> number
     *      thisWeekNewMember -> number
     *      thisMonthNewMember -> number
     *      todayOrderNumber -> number
     *      todayVisitsNumber -> number
     *      thisWeekOrderNumber -> number
     *      thisWeekVisitsNumber -> number
     *      thisMonthOrderNumber -> number
     *      thisMonthVisitsNumber -> number
     *      hotSetmeals -> List<Setmeal>
     */
    Map<String,Object> getBusinessReport() throws Exception;

    int updateReport(Report report);

    int deleteById(Integer id);

    Result queryReportByPhoneNumber(String phoneNumber);

    PageResult queryReportListAll( QueryPageBean queryPageBean);


    Report queryReportById(Integer id);
}
